entry_pathname_test_helper: these tests need extended attributes
authorSimon McVittie <smcv@debian.org>
Sun, 26 Jun 2016 13:26:37 +0000 (14:26 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 26 Jun 2016 21:15:36 +0000 (21:15 +0000)
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #366
Approved by: cgwalters

tests/test-libarchive-import.c

index aaa3c37b2ce650d3fc5b766e1436949e38165a78..3ef379e31f72b61a07ef02c759a3faf27a6b0f27 100644 (file)
@@ -433,6 +433,9 @@ entry_pathname_test_helper (gconstpointer data, gboolean on)
   OstreeRepoCommitModifier *modifier = NULL;
   gboolean met_etc_file = FALSE;
 
+  if (skip_if_no_xattr (td))
+    goto out;
+
   modifier = ostree_repo_commit_modifier_new (0, NULL, NULL, NULL);
   ostree_repo_commit_modifier_set_xattr_callback (modifier, path_cb,
                                                   NULL, &met_etc_file);